home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invisible Universe
/
Invisible Universe (1995)(Voyager)[Mac-PC].iso
/
mac
/
UNIVERSE
/
SHARED.DIR
/
01040_Script_sbcx
< prev
next >
Wrap
Text File
|
1995-11-21
|
2KB
|
64 lines
-- standard button contents
--property myRollover, myPressed, myChannel, myScript, ancestor
--
--on birth me, sp, ro, pr, sc
-- set ancestor to birth(script "sb",sp,sc)
-- set myRollover to (the number of cast ro)
-- set myPressed to (the number of cast pr)
-- set myScript to sc
-- set myChannel to integer(sp)
-- return me
--end
--change appearance
on sbcrollo myChannel,myRollover
--put ">>>my rollover cast 9 " & myRollover
puppetSprite myChannel,TRUE
set the castNum of sprite myChannel to myRollover
--puppetSprite myChannel, false
updateStage
end
on sbcdoScript theLine
--myChannel, myScript
--put ">>> do script: " & myScript
cursor 4
--
--
-- get the frames to preload
--
set labName = item 8 of theLine
set startFrame = label(labName)
--go to startFrame - 1
set endFrame = label(labName & "M")
pplLoad(startFrame, endFrame)
--pplload(getAt(gPreloadList, myChannel))
cursor -1
set myScript = item 7 of theLine && quote & labName & quote
do myScript
end
on sbcpress theLine
set myChannel = integer(item 4 of theLine)
set myPressed = integer(item 5 of theLine)
puppetSprite myChannel,TRUE
set the castNum of sprite myChannel to myPressed
updateStage
puppetSprite myChannel, false
end
on sbcnorm theLine
set myChannel = integer(item 4 of theLine)
puppetSprite myChannel, 0
updateStage
--go to the frame
end
on sbcpreloadRolloxxxNOTUSED myRollover
preloadCast myRollover
end